package com.ldq.imooc.basics.io;

import java.io.File;
import java.io.IOException;

/**
 * @Author : 李道泉
 * @Description :
 * @Date : 2018/4/17 13:41
 * @Modified by :
 */
public class IOUtilTest4 {

    public static void main(String[] args) {

        try {
            long start = System.currentTimeMillis();
            IOUtil.copyFileByBuffer(new File("F:\\IO\\IO.txt"),new File("F:\\IO\\io1.txt"));
            long end = System.currentTimeMillis();
            System.out.println(end - start);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
